<template>
  <component ref="commRefs" v-bind:is="pageKey"></component>
</template>

<script>
  import ReportRepairForm from "./reportRepairForm"
  import ComplaintAdviceForm from "./complaintAdviceForm"
  export default {
    name: "workOrdeRcomponents",
    components:{ ReportRepairForm,ComplaintAdviceForm },
    props: {
      pageKey: {
        type: String,
        default: '',
      },
    },
    methods:{
      init(options){
        try{
          this.$refs.commRefs.show(options)
        }catch (e) {
          this.msgError("获取表单信息异常")
        }
      }
    }
  }
</script>


<style scoped>

</style>
